package com.ruoyi.web.pojo.vo.warning;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @desc  首页预警数量统计
 * @author fwx 2024/2/18 13:57
 **/
@Data
public class WarningRecordCountVO {

    @ApiModelProperty(value = "总预警数量")
    public Long allCount = 0l;

    @ApiModelProperty(value = "月预警数")
    public Long monthCount = 0l;

    @ApiModelProperty(value = "今日预警数")
    public Long dayCount = 0l;

    public void addCount(WarningRecordCountVO vo){
        this.allCount += vo.getAllCount();
        this.monthCount += vo.getMonthCount();
        this.dayCount += vo.getDayCount();
    }
}
